﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DatabaseTransfer.Tables
{
    public class TableRow
    {
        private List<TableColumn> columns;

        public int ColumnCount
        {
            get
            {
                return columns.Count;
            }
        }

        public TableRow()
        {
            columns = new List<TableColumn>();
        }

        public void AddColumn(TableColumn column)
        {
            columns.Add(column);
        }

        public List<TableColumn> GetColumns()
        {
            return this.columns;
        }

        public TableColumn GetColumn(int colIndex)
        {
            return columns[colIndex];
        }
    }
}
